-
-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✅ Fix tests for completion flags #866
Conversation
--show-completions zsh, fish, pwsh users could run tests with their default shell --install-completions (WIP: missing fish, pwsh) this test is skipped due to side-effects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
Thanks for your contribution! Could you explain in a bit more detail the changes you've made to the tests, and why?
I also noticed that the tests are currently failing, so I put this PR in draft node. Do you have time to try and get these fixed so that the test suite is green again? This will make the review process go more smoothly.
Hi! @svlandeg Sure, this was an attempt to fix, simplify and improve the (2) failed tests under If you agree i will update the PR to reflect these changes. |
You're right - the Let me know if you have time to rework the PR accordingly - if not I can also have a look. |
Hello @svlandeg, hope you are doing well! Sure we can go with the approach you mentioned, but while I'm with you with the idea of not removing o reducing the test suite, I think the unit tests must be useful and test something, be fast and simple and contribute with the project coverage to give a degree of confidence, not just be there to "have tests", in this particularly case, these unit tests only were executed "on linux", now will be "needs bash" to me this is just a slow deprecation cycle that leads to "just delete this tests" at the end, to this (2) tests that are no longer useful to the project. Indeed these unit tests have dedicated modules that test it |
Just to provide a bit more background: the Please don't get me wrong - I really appreciate the effort you've made into updating these tests and explaining why. It's just that from a maintainer's point of view, it's much easier to review atomic changes instead of 3 edits done for 3 different reasons - especially when the final PR is not passing the CI. So, to ensure we follow up on this work properly and to capture some of the arguments you've made here, I started a new PR to first address the
I definitely agree that we should look into the "side effects" caused by the Thanks again! 🙏 |
@rokbot: I looked into this more. Are you sure the current implementation of
which should restore the original bash profile, so in fact it shouldn't have any side effects as far as I can see. |
In the meantime, #888 has been merged, which adds the |
Thanks for the interest @rokbot! ☕ And thanks for the help @svlandeg! 🙇 Sofie, maybe we could have the "install completion" tests run only under some opt-in env var or something like that, that we could enable by default on CI, or we could enable manually when testing locally, but wouldn't affect others that come and try to run the tests. What do you think? 🤔 Anyway, it's also not urgent, but we can think if we can find a way to improve that process. I'll close this PR now and we can continue later in subsequent PRs. 🍰 |
Yea, that's a good idea! I'll look into it when I have some time in the next few weeks. |
--show-completions
zsh, fish, pwsh users could run tests with their default shell
--install-completions
(WIP: missing fish, pwsh)
this test is skipped due to side-effects